<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>职位信息详情</title>
<link rel="stylesheet" href="<%= request.getContextPath()%>/vendor/bootstrap/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1>
			 <small> 欢迎您， <span class="label label-success">${name }</span></small>
			<span class="pull-right"><button class="btn btn-warning" onclick="confirmLogout('LogOutServlet')">注销</button></span>
		</h1>

		<hr>
		<h1>${positionName}</h1>
		<table class="table table-hover">
		<tr>
			<th>职位名称</th>
			<th>薪资范围</th>
			<th>职责</th>
			<th>能力要求</th>
			<th>工作地址</th>
			<th>联系电话</th>
			<th>发布时间</th>
		</tr>
		
		<c:if test="${! empty positionInformList}">
		<c:forEach items="${positionInformList}" var="positionEntity">
		<tr>
			
			<td>${positionEntity.positionName}</td>
			<td>${positionEntity.salary1} - ${positionEntity.salary2}</td>
			<td>${positionEntity.duty}</td>
			<td>${positionEntity.ability}</td>
			<td>${positionEntity.address}</td>
			<td>${positionEntity.phone}</td>
			<td>${positionEntity.releaseTime}</td>
			
		</tr>
		</c:forEach>
		</c:if>
		</table>
		<button class = "btn btn-success" type = "button">申请职位</button>
</div>
<script src="vendor/jquery.min.js"></script>
	<script src="vendor/layer/layer.js"></script>
	<script>
		/**
		 * 确认注销
		 */
		function confirmLogout(url) {
			layer.confirm('确认注销？', {
				btn : [ '确认', '取消' ]
			//按钮
			}, function() {
				location = url;
			}, function() {
			});
		}
	</script>	

</body>
</html>